package com.ebocy.hammer.world.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractC2SMessage;

public class C2SJoin4V4RoomMessage extends AbstractC2SMessage {
	private long playerId;

	private int roomId;

	@Override
	public short getMessageCode() {
		return GameMessageCode.WORLD_ENTER_4V4_ROOM;
	}

	@Override
	public void readMessage() {
		this.playerId = Long.parseLong(readString());
		this.roomId = readInt();
	}

	public long getPlayerId() {
		return playerId;
	}

	public int getRoomId() {
		return roomId;
	}

}
